package com.x.reader.model;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseModel;

@MappingTable(tableName = "reader_history")
public class History extends BaseModel {
    @MappingColumn(columnName = "user_id")
    private String userId;

    @MappingColumn(columnName = "history_id")
    private String historyId;

    @MappingColumn(columnName = "history_title")
    private String historyTitle;

    @MappingColumn(columnName = "history_cover")
    private String historyCover;

    @MappingColumn(columnName = "category_id")
    private Integer categoryId;

    @MappingTable(tableName = "reader_category")
    private Category category;

    @MappingColumn(columnName = "history_create_time")
    private String historyCreateTime;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getHistoryId() {
        return historyId;
    }

    public void setHistoryId(String historyId) {
        this.historyId = historyId;
    }

    public String getHistoryTitle() {
        return historyTitle;
    }

    public void setHistoryTitle(String historyTitle) {
        this.historyTitle = historyTitle;
    }

    public String getHistoryCover() {
        return historyCover;
    }

    public void setHistoryCover(String historyCover) {
        this.historyCover = historyCover;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public String getHistoryCreateTime() {
        return historyCreateTime;
    }

    public void setHistoryCreateTime(String historyCreateTime) {
        this.historyCreateTime = historyCreateTime;
    }
}
